package car.bean;

/**
 * 创建一个book对象  属性包括 :  编号  书名  价格  当前库存
 */
public class Book {
    private int num;

    private String name;

    private double price;

    private int much;

    public Book(){}

    public Book(int num, String name, double price, int much) {
        this.num = num;
        this.name = name;
        this.price = price;
        this.much = much;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setMuch(int much) {
        this.much = much;
    }

    public void setNum(int num){
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    public int getMuch() {
        return much;
    }
}
